package bold.storage.component;


import java.util.List;
import java.util.Map;


public class BaseDao {
    public BaseDao() {
    }

    public static Model model(String table) {
        return new Model(table);
    }

    public static Model model(String table, String pk) {
        return (new Model(table)).setPk(pk);
    }

    public static Model model(String table, Map map) {
        return new Model(table, map);
    }

    public static Model model(String table, List<Map<String, Object>> mapList) {
        return new Model(table, mapList);
    }

    public static Query query(String table) {
        return new Query(table);
    }

    public static Query query(String table, String as) {
        return new Query(table, as);
    }

    public static Where where() {
        return new Where();
    }

    public static Where or() {
        return new Where(true);
    }

    public static Where where(Map map) {
        return new Where(map);
    }

    public static Where where(String key, String value) {
        return new Where(key, value);
    }

    public static Where where(String sql, String... values) {
        return new Where(sql, values);
    }
}

